edge = int(input('>>>'))

for i in range(1, edge):
    flag = True
    for j in range(2, i):
        if not i % j:
            flag = False
            break

    if flag:
        print(i, end="  ")